package fr.mma.achievement.model.persistence;

import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Cached;

import fr.mma.achievement.model.AchievementType;
import fr.mma.livraison.model.persistence.Developpeur;

@Cached
public class Achievement {

	@Id
	private String key;
	private AchievementType type;
	private Key<Developpeur> developpeur;
	private int count;
	private boolean finish;

	public Achievement() {
		//RAS
	}

	public Achievement(final String pKey) {
		this.key = pKey;
	}


	public Key<Developpeur> getDeveloppeur() {
		return developpeur;
	}

	public void setDeveloppeur(Key<Developpeur> developpeur) {
		this.developpeur = developpeur;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public boolean isFinish() {
		return finish;
	}

	public void setFinish(boolean finish) {
		this.finish = finish;
	}

	public String getKey() {
		return key;
	}

	public AchievementType getType() {
		return type;
	}

	public void setType(AchievementType type) {
		this.type = type;
	}
}
